import React, { Component } from 'react';

class SlotView extends Component {
    render() {
        console.log(this.props);
        return (
            <div>
                我是子组件
                {/* {this.props.children} */}
                <ul>
                    {
                        this.props.children.map((item, index) => <li key={item.id}>{item.name}</li>)
                    }
                </ul>
            </div>
        );
    }
}

export default SlotView;
